package com.pimee.common.redis.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

@Component
@ConfigurationProperties(prefix = "spring.redis")
@Data
@Order(-1)
@Slf4j
public class RedisProperties {

	public RedisProperties() {
		log.info("RedisProperties init......");
	}

	private String host;// 地址
	private int port; // 端口
	private int database; //数据库
	private int timeout; // 超时时间
	private int maxIdle; 
	private int minIdle;
	private int maxActive;
	private int maxWait;

}
